package com.keli.dt.algorithm;


public class ZhejiangRoadInfo extends RoadInfo {

	@Override
	public double calcTPI(double speed, int roadType) {
		double vf = getFreeflowSpeed(roadType);
		if (speed > vf) {
			return 0;
		}
		
		return 10 * (1 - speed / vf);
	}

}
